<%-- 
    Document   : Search_Pro
    Created on : Dec 28, 2014, 5:53:39 AM
    Author     : thuydao
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
      <!-- Table -->
        <div class="table">
             <c:set var="INFO" value="${requestScope.INFO_search}"/>
             <c:if test="${not empty INFO}">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>

                                <th>STT</th>
                                <th>Tên sản phẩm</th>
                                <th>Nhà cung cấp</th>
                                <th>Mã DMSP</th>
                                <th>Giá vốn</th>
                                <th>Giá bán</th>
                                <th>Khuyến mãi</th>
                                <th>Trạng thái</th>

                                <th width="110" class="ac">Content Control</th>
                        </tr>
                    <c:set var="count" value="0"/>
                    <c:forEach var="rows" items="${INFO}">
                    <c:set var="count" value="${count + 1}"/>


                        <tr>


                                <td>${count}</td>
                                <td><a href="#">${rows.tensp}</a></td>
                                <td>${rows.nhacc}</td>
                                <td>${rows.madmsp}</td>
                                <td>${rows.giavon}</td>
                                <td>${rows.giaban}</td>
                                <td>${rows.khuyenmai}</td>
                                <td>${rows.trangthai}</td>

                                <c:url var="delete" value="C_Pro_Admin">
                                    <c:param name="ProAction_ad" value="delete_pro"/>
                                    <c:param name="masp" value="${rows.masp}"/>

                                </c:url>
                                <c:url var="edit" value="Production_Update.jsp">
                                    <c:param name="masp" value="${rows.masp}"/>
                                    <c:param name="tensp" value="${rows.tensp}"/>
                                    <c:param name="nhacc" value="${rows.nhacc}"/>
                                    <c:param name="madmsp" value="${rows.madmsp}"/>
                                    <c:param name="mota" value="${rows.mota}"/>
                                    <c:param name="giavon" value="${rows.giavon}"/>
                                    <c:param name="giaban" value="${rows.giaban}"/>
                                    <c:param name="khuyenmai" value="${rows.khuyenmai}"/>
                                    <c:param name="trangthai" value="${rows.trangthai}"/>
                                    <c:param name="hinhanh" value="${rows.hinhanh}"/>
                                </c:url>

                                <td><a href="${delete}" class="ico del">Delete</a><a href="${edit}" class="ico edit">Edit</a></td>
                        </tr>
                    </c:forEach>

                </table>
                </c:if>


                <!-- Pagging -->
                <div class="pagging">
                        <div class="left">Showing 1-8 of 44</div>
                        <div class="right">
                                <a href="#">Previous</a>
                                <a href="#">1</a>
                                <a href="#">2</a>
                                <a href="#">3</a>
                                <a href="#">4</a>
                                <a href="#">245</a>
                                <span>...</span>
                                <a href="#">Next</a>
                                <a href="#">View all</a>
                        </div>
                </div>
                <!-- End Pagging -->

        </div>
        <!-- Table -->
    </body>
</html>
